package com.qcxy.gzy.view;

import android.app.Dialog;
import android.content.Context;
import android.view.Gravity;

import com.qcxy.gzy.activity.R;

public class CustomProgress extends Dialog {
    private static CustomProgress customProgress = null;

    private CustomProgress(Context context, int theme) {
        super(context, theme);
    }

    public static CustomProgress createDialog(Context context) {
        customProgress = new CustomProgress(context, R.style.CustomProgress);
        customProgress.setContentView(R.layout.progress_bar);
        customProgress.getWindow().getAttributes().gravity = Gravity.CENTER;
        customProgress.setCanceledOnTouchOutside(false);
        return customProgress;
    }
}
